export const GitCommand = {
  status: { name: '状态', command: 'status', label: 'git status - 显示工作区状态' },
  pull: { name: '拉取', command: 'pull', label: 'git pull - 拉取远程变更' },
  commit: {
    name: '提交',
    command: "add . && commit -m '消息'",
    label: "git add . && git commit -m '消息' - 添加并提交所有更改"
  },
  push: { name: '推送', command: 'push', label: 'git push - 推送当前分支到远程仓库' },
  commitPush: {
    name: '提交并推送',
    command: "add . && commit -m '消息' && push",
    label: "git add . && git commit -m '消息' && git push - 添加、提交并推送"
  },
  fetch: { name: '获取', command: 'fetch --all', label: 'git fetch --all - 获取所有远程更新' },
  reset: {
    name: '硬重置',
    command: {
      command: 'reset --hard HEAD',
      confirm: true,
      message: '确定要执行硬重置吗？这将丢弃所有未提交的更改！'
    },
    label: 'git reset --hard HEAD - 强制重置到最新提交'
  },
  log: {
    name: '日志',
    command: 'log --oneline -n 10',
    label: 'git log --oneline -n 10 - 显示最近10条提交日志'
  },
}

